﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Pay.Data;
using Pay.DTO;
using Pay.DTO.card;
using Pay.TO;

namespace Pay.IService {
	public interface IDistributionProductService
    {
        /// <summary>
        /// 添加分销产品
        /// </summary>
        /// <returns>The bank.</returns>
        int Add(distribution_product_dto distribution_Product_Dto);
        /// <summary>
        /// 根据商户Id获取已经分销的产品
        /// </summary>
        /// <param name="MerchantId"></param>
        /// <returns></returns>
        List<distribution_product_dto> Get(long MerchantId);
        /// <summary>
        /// 下架分销产品
        /// </summary>
        /// <returns>The bank.</returns>
        int SoldOut(long id);
        /// <summary>
        /// 获取分销户下的产品
        /// </summary>
        /// <param name="MerchantId"></param>
        /// <returns></returns>
        PagedResult<product_dto> GetProducts(GoodsQuery query);
    }
}
